/*
 * OpenOfficeWorkbook.java
 *
 */

package pl.edu.pw.mini.adapter.documents;

import com.sun.star.beans.PropertyValue;
import com.sun.star.comp.helper.BootstrapException;
import com.sun.star.frame.XModel;
import com.sun.star.lang.XComponent;
import com.sun.star.sheet.XSpreadsheetDocument;
import com.sun.star.uno.UnoRuntime;
import pl.edu.pw.mini.adapter.OpenOfficeAdapter;

import pl.edu.pw.mini.adapter.documents.Document.Type;

/**
 *
 * @author cdendek
 */
public class OpenOfficeWorkbook  extends OpenOfficeDocument {
    public OpenOfficeWorkbook(XSpreadsheetDocument spreadsheet) throws BootstrapException, com.sun.star.uno.Exception {
        super(spreadsheet);
    }
    
 
    public XSpreadsheetDocument getSpreadsheet(){
        return (XSpreadsheetDocument) docComponent;
    }
    
    public Type getType(){
        return Type.SPREADSHEET;
    }
    
}
